package com.csun.cmny.provider.model.dto.propertyManagement;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class DeviceDeliveryDto {

    //出库给的机构id
    @NotNull(message = "{group.id.null}")
    private Long groupId;

    //设备id集合
    @NotNull(message = "{device.id.null}")
    private List<Long> ids;

    /*出货日期*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date shipmentDate;
}
